package ExerciseClass.Exercise33;

import java.util.Scanner;

public class EncryptionAndDecryPtion {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        StringBuilder stu = new StringBuilder(str);
        System.out.println(stu);
        StringBuilder stu1 = new StringBuilder();
        StringBuilder stu2 = new StringBuilder();
        System.out.println("加密之后");
        for(int i = 0 ; i <stu.length();i++){
            char c = (char) (stu.charAt(i) + 1);
//            System.out.println(c);
            stu1.append(c);
        }
        System.out.println("加密后");
        System.out.println(stu1);
        System.out.println("解密后");
        for(int i = 0 ; i <stu.length();i++){
            char c = (char) (stu1.charAt(i) - 1);
//            System.out.println(c);
            stu2.append(c);
        }
        System.out.println(stu2);
    }
}
